package ooday02;

public class ExtentsTest {
    public static void main(String[] args) {
        Student zs = new Student("张三", 25, "云居山", "jis2302", "1234s");
        /*zs.name = "张三";
        zs.age=25;
        zs.address="云居山";
        zs.className="jsd2302";
        zs.StuId="1234s";*/
        zs.eat();
        zs.sleep();
        zs.sayHi();
        zs.study();

        Teacher ls = new Teacher("李四", 30, "火枫山", 6000);
        /*ls.name="李四";
        ls.age=30;
        ls.address="火枫山";
        ls.salary=6000;*/
        ls.eat();
        ls.sleep();
        ls.sayHi();
        ls.teacher();

        Doctor ww = new Doctor("王五", 36, "冰泉山", "主任");
        /* ww.name = "王五";
        ww.age=36;
        ww.address="冰泉山";
        ww.title="主任";*/
        ww.eat();
        ww.sleep();
        ww.sayHi();
        ww.cut();

    }
}
